package com.dsideal.cloud.cas.client.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zw
 * @date 2021/04/19
 */
public interface LoginConstants {

    /**
     * 易加学段对应学院学段
     */
    Map<String,String> STAGE_CODE_MAP = new HashMap<String,String>() {
        {
            put("9","9");
            put("51","51");
            put("36","6");
            put("34","4");
            put("321","3");
            put("211","2");
            put("111","1");

        }
    };


    enum IdentityCode {
        /**
         * 教师
         */
        TEACHER("教师", "5"),

        /**
         * 学生
         */
        STUDENT("学生", "6"),
        /**
         * 家长
         */
        PARENT("家长", "7");

        IdentityCode(String name, String code) {
            this.name = name;
            this.code = code;
        }

        private String name;
        private String code;


        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }

    enum LoginType {

        /**
         *  用户账号+密码登录
         */
        ACCOUNT_PASSWORD("用户账号+密码登录", "1");

        LoginType (String name, String code) {
            this.name = name;
            this.code = code;
        }

        private String name;
        private String code;


        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }

    enum AccountType {

        /**
         *  普通账号
         */
        NORMAL_ACCOUNT("普通账号", "1"),

        /**
         *  域账号
         */
        DOMAIN_ACCOUNT("域账号", "2");

        AccountType (String name, String code) {
            this.name = name;
            this.code = code;
        }

        private String name;
        private String code;


        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }

    enum EquipmentType {

        /**
         *  网页端
         */
        WEBPAGE("网页端", "1"),

        /**
         *  PC授课端
         */
        PC_TEACH("PC授课端", "2"),

        /**
         *  安卓平板端
         */
        ANDROID_PAD("安卓平板端", "3"),

        /**
         *  iPad端
         */
        IPAD("iPad端", "4"),

        /**
         *  安卓手机端
         */
        ANDROID_PHONE("安卓手机端", "5"),

        /**
         *  苹果手机端
         */
        IPHONE("苹果手机端", "6");

        EquipmentType (String name, String code) {
            this.name = name;
            this.code = code;
        }

        private String name;
        private String code;


        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }

    enum LoginResult {

        /**
         *  成功
         */
        SUCCESS("成功", "1"),

        /**
         *  失败
         */
        FAIL("失败", "0");

        LoginResult (String name, String code) {
            this.name = name;
            this.code = code;
        }

        private String name;
        private String code;


        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }
    }


}
